import Layout from '@/layout'
import parentView from '@/layout/components/AppMain'
export default [
  {
    path: '/risk',
    name: 'risk',
    meta: {
      icon: 'md-cloud-upload',
      title: '风控中心'
    },
    component: Layout,
    children: [
      {
        path: 'businessConfig',
        name: 'businessConfig',
        meta: {
          icon: 'ios-document',
          title: '风控业务配置'
        },
        component: parentView,
        children: [
          {
            path: 'riskSetting',
            name: 'riskSetting',
            meta: {
              icon: 'ios-document',
              title: '用户认证业务参数配置'
            },
            component: () => import('@/views/risk/businessConfig/riskSetting')
          },
          {
            path: 'riskReview',
            name: 'riskReview',
            meta: {
              icon: 'ios-document',
              title: '机审业务参数配置'
            },
            component: () => import('@/views/risk/businessConfig/riskReview')
          },
          {
            path: 'machineReview',
            name: 'machineReview',
            meta: {
              icon: 'ios-document',
              title: '机审业务流程配置'
            },
            component: () => import('@/views/risk/businessConfig/machineReview')
          },
          {
            path: 'manualReview',
            name: 'manualReview',
            meta: {
              icon: 'ios-document',
              title: '人工审核业务流程配置'
            },
            component: () => import('@/views/risk/businessConfig/manualReview')
          },
          {
            path: 'letterReview',
            name: 'letterReview',
            meta: {
              icon: 'ios-document',
              title: '信审工作配置'
            },
            component: () => import('@/views/risk/businessConfig/letterReview')
          }
        ]
      },
      {
        path: 'riskManagement',
        name: 'riskManagement',
        meta: {
          icon: 'ios-document',
          title: '风控管理'
        },
        component: parentView,
        children: [
          {
            path: 'riskReport',
            name: 'riskReport',
            meta: {
              icon: 'ios-document',
              title: '风控报表'
            },
            component: parentView,
            children: [
              {
                path: 'thirdParty',
                name: 'thirdParty',
                meta: {
                  icon: 'ios-document',
                  title: '第三方接口调用'
                },
                component: () => import('@/views/risk/riskManagement/riskReport/thirdParty')
              },
              {
                path: 'phaseData',
                name: 'phaseData',
                meta: {
                  icon: 'ios-document',
                  title: '信审阶段审核数据'
                },
                component: () => import('@/views/risk/riskManagement/riskReport/phaseData')
              },
              {
                path: 'conversion',
                name: 'conversion',
                meta: {
                  icon: 'ios-document',
                  title: '信审订单转化报表'
                },
                component: () => import('@/views/risk/riskManagement/riskReport/conversion')
              },
              {
                path: 'performance',
                name: 'performance',
                meta: {
                  icon: 'ios-document',
                  title: '考勤绩效'
                },
                component: () => import('@/views/risk/riskManagement/riskReport/performance')
              },
              {
                path: 'record',
                name: 'attendanceRecord',
                meta: {
                  icon: 'ios-document',
                  title: '考勤记录'
                },
                component: () => import('@/views/risk/riskManagement/riskReport/record')
              },
              {
                path: 'machineReviewRefuse',
                name: 'machineReviewRefuse',
                meta: {
                  icon: 'ios-document',
                  title: '机审拒绝理由统计数据'
                },
                component: () => import('@/views/risk/riskManagement/riskReport/machineReviewRefuse')
              },
              {
                path: 'refusal',
                name: 'refusal',
                meta: {
                  icon: 'ios-document',
                  title: '人审拒绝理由统计数据'
                },
                component: () => import('@/views/risk/riskManagement/riskReport/refusal')
              },
              {
                path: 'letterRecord',
                name: 'letterRecord',
                meta: {
                  icon: 'ios-document',
                  title: '信审记录明细'
                },
                component: () => import('@/views/risk/riskManagement/riskReport/letterRecord')
              }
            ]
          },
          {
            path: 'letterReviewOrder',
            name: 'letterReviewOrder',
            meta: {
              icon: 'ios-document',
              title: '信审订单管理'
            },
            component: () => import('@/views/risk/riskManagement/letterReviewOrder')
          },
          {
            path: 'letterReviewMember',
            name: 'letterReviewMember',
            meta: {
              icon: 'ios-document',
              title: '信审成员管理'
            },
            component: () => import('@/views/risk/riskManagement/letterReviewMember/index')
          }
        ]
      },
      {
        path: 'blackList',
        name: 'blackList',
        meta: {
          icon: 'ios-document',
          title: '自定义征信黑名单'
        },
        component: () => import('@/views/risk/blackList')
      },
      {
        path: 'riskWorkbench',
        name: 'riskWorkbench',
        meta: {
          icon: 'ios-document',
          title: '信审工作台'
        },
        component: parentView,
        children: [
          {
            path: 'administrator',
            name: 'administrator',
            meta: {
              icon: 'ios-document',
              title: '信审小组管理员'
            },
            component: parentView,
            children: [
              {
                path: 'auditedList',
                name: 'auditedList',
                meta: {
                  icon: 'ios-document',
                  title: '组内已审核列表'
                },
                component: () => import('@/views/risk/riskWorkbench/administrator/auditedList')
              },
              {
                path: 'attendanceRecord',
                name: 'administratorAttendanceRecord',
                meta: {
                  icon: 'ios-document',
                  title: '组内考勤记录'
                },
                component: () => import('@/views/risk/riskWorkbench/administrator/attendanceRecord')
              },
              {
                path: 'memberManagement',
                name: 'memberManagement',
                meta: {
                  icon: 'ios-document',
                  title: '小组成员管理'
                },
                component: () => import('@/views/risk/riskWorkbench/administrator/memberManagement')
              }
            ]
          },
          {
            path: 'commissioner',
            name: 'commissioner',
            meta: {
              icon: 'ios-document',
              title: '信审专员'
            },
            component: parentView,
            children: [
              {
                path: 'operPlatCommon',
                name: 'operPlatCommon',
                meta: {
                  icon: 'ios-document',
                  title: '信审专员工作台'
                },
                component: () => import('@/views/risk/riskWorkbench/commissioner/operPlatCommon')
              },
              {
                path: 'riskAttendance',
                name: 'riskAttendance',
                meta: {
                  icon: 'ios-document',
                  title: '考勤'
                },
                component: () => import('@/views/risk/riskWorkbench//commissioner/riskAttendance')
              }
            ]
          }
        ]
      }
    ]
  }
]
